import request from '@/utils/request'
export function getCompanyFlows(params) {
  return request({
    url: '/api/Organiztion/CompanyRoleManage/GetCompanyFlows',
    method: 'get',
    params
  })
}
export function getRoles(params) {
  return request({
    url: '/api/Organiztion/CompanyRoleManage/GetRoles',
    method: 'get',
    params
  })
}
export function modifyRole(data) {
  return request({
    url: '/api/Organiztion/CompanyRoleManage/ModifyRole',
    method: 'post',
    data,
  })
}
export function addRole(data) {
  return request({
    url: '/api/Organiztion/CompanyRoleManage/AddRole',
    method: 'post',
    data,
  })
}
export function removeRole(roleId) {
  return request({
    url: '/api/Organiztion/CompanyRoleManage/RemoveRole',
    method: 'get',
    params: {
      roleId
    },
  })
}
export function getAuths() {
  return request({
    url: '/api/Organiztion/CompanyRoleManage/GetAuths',
    method: 'get',
  })
}